remove last 4 element from an array javascript

welcome to shbcf.ru